import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import { BaseHttpService } from '../../../../../../shared/services/baseHttp.service';

@Injectable()
export class CompanyReportDownloadService extends BaseHttpService {

    constructor(public http: HttpClient) {
        super();
    }

    /**
     * Add company to collection of most active reports
     * @param companyId Company unique identifier
     */
    public addCompanyToMostActiveReports(companyId: string): Observable<any> {
        return this.http.post(this.serverUrl + 'marserv/api/v1/MostActiveReport/' + companyId, null, { responseType: 'text' });
    }
}
